<?php
class Logout extends Controller {
	public function html() {
		$mUser = new User_model();
		$data = array();
		$data['backurl'] = $this->backurl()? $this->backurl(): '/';
		if($mUser->currUser()) $mUser->logout();
		header("Location:/auth/login");
	}
	public function json() {
	 $this->html();
	}
}